package com.quanyue.haircut.user.mapper;

import com.quanyue.haircut.domain.entity.Manager;
import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.mybatis.mapper.auto.OrderBy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ManagerMapper extends AutoMapper <Manager, Integer> {

    Manager findByPasswordValid(@Param("userName") String userName, @Param("password") String password);

    @OrderBy(value = "createTime")
    List <Manager> findByFatherIdValid(@Param("fatherId") Integer fatherId);

    Manager findByMerchantNo(Integer merchantNo);
}
